
import { CustomFlowNode } from "src/custom-flow-node/entities/custom-flow-node.entity";
import { Column, CreateDateColumn, Entity, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
@Entity()
export class CustomFlow {
  @PrimaryGeneratedColumn("uuid")
  id: string;

  @Column()
  flowName: string;

  @CreateDateColumn()
  createdDate: Date;

  @UpdateDateColumn()
  updatedDate: Date;

  @OneToMany(() => CustomFlowNode, customFlow => customFlow.customFlow, {
    cascade: true
  })
  customFlowNodes: CustomFlowNode[]
}
